package com.mx.base.language.script.remote


/**
 * @author: xiao.ma
 * Date: 2022/2/25 16:06
 * Desc:
 */

object LanguageHelper {


    fun getRemoteLanguageMap(
        appId: Long,
        moduleName: String,
        languageName: String,
    ): MutableMap<String, String> {
        val response = NetWork.instance.getApi(Api::class.java)
            .getLanguage(appId, moduleName, languageName)
            .execute()
        println("=====>$response")
        return response.body()?.data?.xmlMap ?: mutableMapOf()
    }
}